import Vue from 'vue';
import Vuex from 'vuex';
import mutations from './mutations'

Vue.use(Vuex);

const state = {
    fold: true, //折叠左侧导航
    player: true, //播放(false)--暂停(true)
    time: 0,
    music:{
      id:0,
      name:'',
      singer:'',
      duration:0,
      url:'',
      picUrl:'',
    },
    collect: false, //音乐是否收藏
    playlist: [], //播放历史
};

export default new Vuex.Store({
   state,
   mutations,
});
